﻿using System.ComponentModel.DataAnnotations;

namespace Sustainalytics.BusinessResearchProductStates.Entities.ResearchState
{
    public enum ResearchState
    {
        [Display(Name = "Framework not applicable")]
        FrameworkNotApplicable,

        [Display(Name = "Research in progress")]
        ResearchInProgress,

        [Display(Name = "Research available")]
        ResearchAvailable,

        [Display(Name = "Research not available")]
        ResearchNotAvailable,
    }

    public static class ResearchStateExtensions
    {
        public static bool IsAvailable(this ResearchState researchState) => researchState == ResearchState.ResearchAvailable;
    }
}
